package com.lipeng.service;

import com.lipeng.bean.Attention;
import com.lipeng.bean.Club;
import com.lipeng.bean.Shop;
import com.lipeng.utils.AjaxResult;

import java.util.List;

/**
 * Created by dllo on 18/3/7.
 */
public interface ClubService {
    Club selectClubById(Integer cid);
    List<Club> selectAllClub();
    int insertClub(Club club);
    int updateClub(Club club);
    int deleteClubById(Integer cid);
    List<Club> selectClubByName(String name);

    //API
    AjaxResult addAttention(Integer uid, Integer cid);
    AjaxResult delAttention(Integer attid);
    AjaxResult selectAttentionByUid(Integer uid);
    Integer selectAttentionCountByCid(Integer cid);
    Attention selectClubAttention(Integer cid, Integer uid);
}
